package jhunter.security;

import net.sf.ehcache.CacheManager;

import org.springframework.beans.factory.FactoryBean;

public class EhCacheManager implements FactoryBean<CacheManager> {

	@Override
	public CacheManager getObject() throws Exception {
		return CacheManager.create();
	}

	@Override
	public Class<?> getObjectType() {
		return CacheManager.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}

}
